Build fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like
authorRobert Lipe <robertlipe@gpsbabel.org>
Wed, 19 Dec 2018 03:52:14 +0000 (21:52 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Wed, 19 Dec 2018 03:52:14 +0000 (21:52 -0600)
libs, but not...

CMakeLists.txt

index cd824e6a5662063528ed40f971a05263c8389ce6..c1b38655da14c396bee1a2c910ca622699018d8d 100644 (file)
@@ -217,7 +217,7 @@ if (UNIX AND NOT APPLE)
 endif()
 
 if (APPLE)
-  set(LIBS ${LIBS} -framework IOKit -framework CoreFoundation)
+  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework IOKit -framework CoreFoundation")
   include_directories(AFTER mac/libusb)
   set(SOURCES ${SOURCES}
     mac/libusb/darwin.c